package com.treasure.domain.repository;

import com.treasure.infrastructure.model.doc.SegmentESDocBean;
import com.treasure.web.AiTreasureChestApplication;
import com.treasure.infrastructure.repository.extraction.elastic.SegmentESDocRepository;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;


@SpringBootTest(classes = AiTreasureChestApplication.class)
@RunWith(SpringRunner.class)
public class SegmentDocRepositoryTestSegmentES {

    @Autowired
    private SegmentESDocRepository segmentESDocRepository;

    @Test
    public void searchSegmentDoc() {
        List<SegmentESDocBean> result = segmentESDocRepository.searchSegmentDoc("养老金介绍");
        System.out.println(result);
    }
}